<template>
  <div class="dashboard-editor-container">
    <!--    <github-corner class="github-corner"/>-->
    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="24">
        <panel-group :panel-data="numbers"/>
      </el-col>
    </el-row>

  </div>
</template>

<script>
// import GithubCorner from '@/components/GithubCorner'
import PanelGroup from './components/PanelGroup'
import { getDashBoardInfo } from '@/api/admin'




export default {
  name: 'DashboardAdmin',
  components: {
    PanelGroup,
  },
  data() {
    return {
      numbers: {},
    }
  },
  created() {
    this.getDashBoardInfo()
  },
  methods: {
    getDashBoardInfo() {
      getDashBoardInfo().then(response => {
        this.numbers = response.data.data;
      })
    },
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  }

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}

.el-carousel__item .chart-wrapper{
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #d3dce6;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>
